export class AccountUser {
  constructor(user) {
    this.user = user;
  }

  get id() {
    return this.user.id;
  }

  get thirdId() {
    return this.user.third_id;
  }

  get source() {
    return this.user.source;
  }

  get area() {
    return this.user.area;
  }

  get cookie() {
    return this.getThirdParam('cookie')
  }

  get userAgent() {
    return this.getThirdParam('user-agent')
  }

  get thirdParam() {
    return this.user.third_param || {};
  }

  get thirdReturn() {
    return this.user.third_return || {};
  }

  getThirdParam(key) {
    return this.user.third_param?.[key] || '';
  }

  getThirdRuturn(key){
    return this.user.third_return?.[key] || '';
  }
}